<h1>权限分配 - <span id="secondHeading">管理频道</span></h1>
<% if @flash[:notice] -%>
<div id="notice"><%= @flash[:notice] %></div>
<% end -%>
<TABLE border="0" id="LIST_TB">
	<TR id="LIST_TB_TITLE">
		<TD>序号</TD>
		<TD>模块</TD>
		<TD>频道名称</TD>
		<TD>隶属于</TD>
		<TD>路径</TD>
		<TD>修改</TD>
		<TD>删除</TD>
	</TR>
	<% @rights.each do |right| %>
	<TR id="LIST_TB_CONTENT1">
		<TD><%=right.id%></TD>
		<TD><%=right.name%></TD>
		<TD><%=right.module%></TD>
		<TD>
			<%=right.mgroup%>
		</TD>
		<TD><%=right.url%></TD>
		<TD><%=link_to(image_tag("/images/edit.gif"),{:action=>"edit_right",:id=>right.id})%></TD>
		<TD><%=link_to(image_tag("/images/delete.gif"),{:action=>"del_right",:id=>right.id},{:confirm=>"你确定要删除该频道吗?"})%></TD>
	</TR>
	<% end %>
</TABLE>
<table>
        <tr>
                <td>
                        <input type="button" value="打印当前页" class="sub" onclick="openPrintWindow('LIST_TB')"/>
                        <input type="button" value="导出当前数据" class="sub" onclick="CellAreaExcel('LIST_TB')"/>
                </td>
                <td>
                        <div class="pagination">
                        <ul>
                                <li class="btn">
                                <%if @right_pages.current.previous%>
                                <%=link_to("<<上一页", { :page => @right_pages.current.previous })%>
                                <%else%>
                                <span>&lt;&lt;上一页</span>
                                <%end%>
                        </li>
                        <li><%= pagination_links(@right_pages) if @right_pages%></li>
                                <li class="btn">
                                <%if @right_pages.current.next%>
                                <%=link_to("下一页>>", { :page => @right_pages.current.next })%>
                                <%else%>
                                <span>&gt;&gt;下一页</span>
                                <%end%>
                        <li>
                        </ul>
                        </div>
                </td>
        </tr>
</table>
